<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	response.setContentType("application/doc");
	response.setHeader("Content-Disposition","inline; filename=\"report.doc\"");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>
		<style type="text/css">
			#dataTable{
				font-size: 13px;
				border-collapse: collapse;
			}
		</style>
	</head>
	<body>
		<p align="center">
			<strong style="color: #F00; font-size: 60px;">广东省中山市气象局</strong><strong>
			</strong>
			<br>
			<strong style="color: #F00; font-size: 60px;">气象灾情快报</strong><strong>
			</strong>
			<br>
			<p align="center">
				<strong>2011&nbsp;</strong><strong> 第</strong><u>  </u><strong>期</strong>
			</p>
		</p>
		<hr style="color: #F00;" />
		<p>
			<strong>一、灾情发生的时间、地点： </strong>
		</p>
		<p style="height:100px;">&nbsp;
			时间:${date} ${hour}点,中山
		</p>
		<p>
			<strong>二、灾情内容： </strong><br/><br/>
			<table id="dataTable" border="1" cellpadding="4">
			<thead>
				<tr>
					<th colspan="2">
						自动站点
					</th>
					<th colspan="3" class="rain">
						雨量
					</th>
					<th colspan="14" class="wind">
						风速
					</th>
				</tr>
				<tr>
					<th rowspan="2">
						代号
					</th>
					<th rowspan="2">
						站名
					</th>
					<th rowspan="2"  class="rain">
						一小时雨量
					</th>
					<th rowspan="2"  class="rain">
						三小时雨量
					</th>
					<th rowspan="2"  class="rain">
						二十四小时雨量
					</th>
					<th colspan="2" class="wind">
						正点十分钟风速
					</th>
					<th colspan="3" class="wind">
						时最大风速
					</th>
					<th colspan="3" class="wind">
						时极大风速
					</th>
					<th colspan="3" class="wind">
						日最大风速
					</th>
					<th colspan="3" class="wind">
						日极大风速
					</th>
				</tr>
				<tr>
					<th class="wind">
						风向
					</th>
					<th class="wind">
						风速
					</th>
					<th class="wind">
						风向
					</th>
					<th class="wind">
						风速
					</th>
					<th class="wind">
						出现时间
					</th>
					<th class="wind">
						风向
					</th>
					<th class="wind">
						风速
					</th>
					<th class="wind">
						出现时间
					</th>
					<th class="wind">
						风向
					</th>
					<th class="wind">
						风速
					</th>
					<th class="wind">
						出现时间
					</th>
					<th class="wind">
						风向
					</th>
					<th class="wind">
						风速
					</th>
					<th class="wind">
						出现时间
					</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${zdzList}" var="report">
					<tr>
						<td class="a-center">
							${report.id}
						</td>
						<td class="a-center">
							${report.zdzName }
						</td>
						<td class="a-center rain">
							${report.hourrfString }
						</td>
						<td class="a-center rain">
							${report.threehourrfString }
						</td>
						<td class="a-center rain">
							${report.twentyfourhourrfString }
						</td>
						<td class="a-center wind">${report.wd10dd }</td>
						<td class="a-center wind">${report.wd10dfString }</td>
						<td class="a-center wind">${report.wd10maxdd }</td>
						<td class="a-center wind">${report.wd10maxdfString }</td>
						<td class="a-center wind"><fmt:formatDate value="${report.wd10maxtime}" pattern="yyyy-MM-dd hh:mm:dd"/></td>
						<td class="a-center wind">${report.wd3smaxdd}</td>
						<td class="a-center wind">${report.wd3smaxdfString }</td>
						<td class="a-center wind"><fmt:formatDate value="${report.wd3smaxtime}" pattern="yyyy-MM-dd hh:mm:dd"/></td>
						<td class="a-center wind">${report.wd10daymax }</td>
						<td class="a-center wind">${report.wf10daymaxString }</td>
						<td class="a-center wind"><fmt:formatDate value="${report.wd10daymaxtime}" pattern="yyyy-MM-dd hh:mm:dd"/></td>
						<td class="a-center wind">${report.wd3daymax }</td>
						<td class="a-center wind">${report.wf3daymaxString }</td>
						<td class="a-center wind"><fmt:formatDate value="${report.wd3daymaxtime}" pattern="yyyy-MM-dd hh:mm:dd"/></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		</p>
		<p>
			<strong>三、造成灾害的原因及天气实况： </strong>
		</p>
		<p style="height:100px;">&nbsp;
		
		</p>
		<p>
			<strong>四、预报服务情况： </strong>
		</p>
		<p style="height:100px;">&nbsp;
			
		</p>
		<p>
			<hr style="color: #000;" />
		</p>
		<p>
			<table border="0" cellspacing="0" cellpadding="5">
				<tr>
					<td width="100" align="left">
						<strong>上报单位：</strong>
					</td>
					<td width="300" align="left">
						<strong>中山市气象局</strong><strong>   </strong>
					</td>
					<td width="150" align="left">
						<strong>联系人及电话：</strong>
				  </td>
					<td align="left">
						<strong>88637124</strong>
					</td>
				</tr>
				<tr>
					<td align="left">
						<strong>上报时间：</strong>
					</td>
					<td align="left">
						<strong>${time }</strong>
					</td>
					<td align="left">
						<strong>签发人：</strong>
					</td>
					<td align="left">
						<strong></strong>
					</td>
				</tr>
			</table>
		</p>
	</body>
</html>
